package day9;

import javax.imageio.ImageIO;
import java.io.IOException;
import java.util.Random;

public class BigPlane extends BaseClass implements ScoreState,Award{
    int num= (int) (Math.random()*2);
    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    int score;
    int speed;
    public BigPlane(){
        bf=Main.bigPlane;
        width=bf.getWidth();
        height=bf.getHeight();
        x= (int) (Math.random()*(400-width));
        y=-height;
        speed=3;
        blood=5;
        score=50;
    }
    @Override
    public void move() {
        y=y+speed;
    }

    @Override
    public int addScore() {
        return score;
    }

    @Override
    public int AddAward() {
        return num;
    }
}
